package com.adopt.service.Impl;

import com.adopt.mapper.ChatHallMapper;
import com.adopt.pojo.Comment;
import com.adopt.service.ChatHallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:ChatHallServiceImpl
 * Package:com.adopt.service.Impl
 * Description:
 *
 * @Date:2023/9/11 14:52
 * Author:shifan
 */
@Service
public class ChatHallServiceImpl implements ChatHallService {

    @Autowired
    private ChatHallMapper chatHallMapper;


    @Override
    public List<Comment> findByPetId(Integer pet_id) {
        List<Comment> comments = chatHallMapper.findByPetId(pet_id);
        return comments;
    }
}
